package priv.mill.view;

import javax.swing.JLayeredPane;
import javax.swing.JPanel;
import javax.swing.JTextField;
import javax.swing.JButton;

import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;

public class LimaoJPanel extends JPanel {
	private JLayeredPane layer;

	public LimaoJPanel() {
		init();
	}

	/**
	 * 
	 */
	private void init() {
		setLayout(null);
		
		JButton button = new JButton("\u66FE\u7684\u6309\u94AE");
		button.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				LimaoJPanel.this.layer.setLayer(LimaoJPanel.this, -1);
				
			}
		});
		button.setBounds(123, 46, 270, 83);
		add(button);
	}

	public LimaoJPanel(JLayeredPane layeredPane) {
		this.layer=layeredPane;
		init();
	}

}
